package com.qiaoba.module.system.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.qiaoba.common.database.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 菜单
 *
 * @author ailanyin
 * @date 2023-09-10 12:12:40
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_menu")
@NoArgsConstructor
@AllArgsConstructor
public class SysMenu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId
    @Schema(description = "菜单ID")
    private String menuId;

    @Schema(description = "菜单名称")
    private String menuName;

    @Schema(description = "父菜单ID")
    private String parentId;

    @Schema(description = "显示顺序")
    private Integer orderNum;

    @Schema(description = "路由地址")
    private String path;

    @Schema(description = "组件路径")
    private String component;

    @Schema(description = "路由参数")
    private String query;

    @Schema(description = "是否为外链（0否 1是）")
    private String isFrame;

    @Schema(description = "是否缓存（0不缓存 1缓存）")
    private String isCache;

    @Schema(description = "类型（M目录 C菜单 F按钮）")
    private String menuType;

    @Schema(description = "显示状态（0隐藏 1显示）")
    private String isVisible;

    @Schema(description = "权限字符串")
    private String perms;

    @Schema(description = "菜单图标")
    private String icon;

}
